import java.util.Scanner;
public class zy10{
	public static void main(String [] args){
		IntReceiver ir = new IntReceiver();
		int value;
		value = ir.getValue();
		System.out.print("The value is "+value);
		System.out.println();
	}	
}
class IntReceiver{	
	private int max=100;
	private int min=-1;
	private String warningStr="invalid input!";
	private String inputStr="input an integer:";
	private int num=-1;	
	public int getValue(){
		Scanner r = new Scanner(System.in);
		while(num<=min||num>max){
			System.out.print(inputStr);
			num = r.nextInt();
			if(num>max||num<min){
				System.out.println(warningStr);
			}
			else{
				break;
			}
		}		
		return num;
	}
}

